/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jh.query.jquery;

/**
 *
 * @author namhh
 * @param <_Type>
 */
public  class BCol<_Type extends Object> implements Cloneable {

    private String colname;
    private _Type value;
    private boolean isPk = false;
    private int index = -1;

    public BCol(String colname, _Type value) {
        this.colname = colname;
        this.value = value;
    }

    

    public boolean isPrimaryKey() {
        return isPk;
    }

    public void setPrimaryKey() {
        isPk = true;
    }

    public void setPrimaryKey(boolean isPrimaryKey) {
        isPk = isPrimaryKey;
    }

    public _Type getValue() {
        return value;
    }

    public String getCoumnName() {
        return colname;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public void setValue(_Type value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.colname; //To change body of generated methods, choose Tools | Templates.
    }
    
    
}
